<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ include file="../common/top.jsp"%>
<div id="Catalog">
    <form action="register" method="post">

    <h2>用户信息</h2>
    <table id="accountForm">
        <tr >
            <td>账号:</td>
            <td>
                <input type="text" name="username" id="username"><br/>
<%--                <span class="error-msg">${requestScope.msg_username}</span>--%>
                <div id="usernameMsg"></div>
            </td>
        </tr>
        <tr >
            <td>密码:</td>
            <td>
                <input type="password" name="password" id="password"><br/>
                <span class="error-msg">${requestScope.msg_password}</span>
                <div id="passwordMsg"></div>
            </td>
        </tr>
        <tr >
            <td>再次输入:</td>
            <td>
                <input type="password" name="repeatedPassword" id="repeatedPassword"><br/>
<%--                <span class="error-msg">${requestScope.msg_repeated_password}</span>--%>
                <div id="repeatedPasswordMsg"></div>
            </td>
        </tr>
        <tr>
            <td>验证码:</td>
            <td>
                <input type="text" name="code" size="5" maxlength="4" id="myCode"/>
                <a href="registerForm"><img src="verificationCode" id="checkCode"></a>
                <span class="error-msg">${requestScope.msg_verification_code}</span>
<%--                <div id="checkCodeMsg"></div>--%>
            </td>
        </tr>
    </table>

    <%@include file="accountFields.jsp"%>

        <br>
        <br>
        <input type="submit"  name="newAccount" value="确 定" />
    </form>
</div>
<br>
<br>
<script type="text/javascript" src="./js/newAccount.js"></script>
<%@ include file="../common/bottom.jsp"%>
